home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Electronic Arts: Electro…Thunder over Europe (USA)
/
Electronic Arts - Electronic Press Kit - Jane's USAF + System Shock 2 + Shogun - Total War + Flight Unlimited III + Flight Combat - Thunder over Europe (USA).bin
/
SSII
/
Demo.dir
/
00003_Script_Rollover Member Change
< prev
next >
Wrap
Text File
|
1999-04-09
|
1KB
|
62 lines
-- DESCRIPTION --
on getBehaviorDescription me
return "¼
ROLLOVER MEMBER CHANGE"&RETURN&RETURN&"¼
Change the sprite's cast member when the mouse rolls over the sprite."&¼
RETURN&RETURN&"¼
PARAMETERS:"&RETURN&"¼
* Rollover Cast Member"
end
on getBehaviorTooltip me
return "¼
Use with graphic sprites."&RETURN&RETURN&"¼
Swap a sprite's cast member on rollover."
end getBehaviorTooltip
-- HISTORY --
-- 22 October 1998, written for the D7 Behaviors Palette by James Newton
property spriteNum
property mySprite
property myStandardMember
property myRollovermember
on beginSprite me
mySprite = sprite (me.spriteNum)
myStandardMember = mySprite.member
end
on mouseEnter me
mySprite.member = myRolloverMember
end mouseEnter
on mouseLeave me
mySprite.member = myStandardMember
end mouseLeave
on getPropertyDescriptionList
if the currentSpriteNum = 0 then exit
theMember = sprite(the currentSpriteNum).member
theMemberNumber = theMember.number
return ¼
[ ¼
#myRolloverMember: ¼
[ ¼
#comment: "Display which member on rollover?", ¼
#format: #graphic, ¼
#default: member (theMemberNumber + 1) ¼
] ¼
]
end getPropertyDescriptionList